package com.ruirenyun.util.annotation.page;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author Deng Ye
 * @version 1.0
 * @date 2020/9/29
 * @description 分页注解 返回值类型必须为PageRespVo
 * @modifiedBy
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface PageQuery {
    String message() default "PAGE_QUERY_FAILED";
    //页号的参数名
    String pageNumParameterName() default "pageNum";
    //每页行数的参数名
    String pageSizeParameterName() default "pageSize";
}
